package cn.edu.sdjzu.controller;

import cn.edu.sdjzu.service.ProviderService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;

@RestController
public class HelloController {
    private final ProviderService providerService;

    public HelloController(ProviderService providerService) {
        this.providerService = providerService;
    }

    @GetMapping("/hello")
    public Mono<String> helloWorld() {
        return providerService.getHelloWorld();
    }
}
